package cn.edu.ctbu.myfirstweb.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

@Entity//建立关系
@Table(name = "tb_sc")
@Data//自动生成getter和setter
@NoArgsConstructor//生成无参构造器
@AllArgsConstructor//生成全参构造器
public class SC {

    @EmbeddedId
    private SCID scid;//联合主键

    @Column(name = "score")
    private Float score;//分数

    @Column(name = "flag")
    private Integer flag;
}
